#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :slice.py
# @Time      :2021/3/8 13:24
# @Author    :Letquit
"""
文件说明：

"""
s = '***hello**'

while s[:1] == '*':
    s = s[1:]
    print(s)
while s[-1:] == '*':
    s = s[:-1]
    print(s)
print(s)
# print(' hello '[:1])
# print(' hello '[1:])

if __name__ == "__main__":
    run_code = 0
